﻿@model DissProject.Models.ThesisEvaluation

@{
    ViewBag.Title = "ThesisEvaluationDetails";
    Layout = "~/Areas/Teachers/Views/Shared/_Layout.cshtml";
}

<h2> Рецензия за дипломна работа </h2>
    <fieldset class="withBorder">
        <legend>Общи критерии</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.TheoreticalConsistencyGrade)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.TheoreticalConsistencyGrade)
            @Html.ValidationMessageFor(model => model.TheoreticalConsistencyGrade)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PersonalIdeasGrade)
        </div>
        <div class="editor-field">
            @Html.DisplayFor( model => model.PersonalIdeasGrade)
            @Html.ValidationMessageFor(model => model.PersonalIdeasGrade)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ExecutionGrade)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.ExecutionGrade)
            @Html.ValidationMessageFor(model => model.ExecutionGrade)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.StyleGrade)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.StyleGrade)
            @Html.ValidationMessageFor(model => model.StyleGrade)
        </div>
    </fieldset>
    <fieldset class="withBorder">
        <legend>Реализация</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.StructuralGrade)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.StructuralGrade)
            @Html.ValidationMessageFor(model => model.StructuralGrade)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FunctionalityGrade)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.FunctionalityGrade)
            @Html.ValidationMessageFor(model => model.FunctionalityGrade)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ReliabilityGrade)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.ReliabilityGrade)
            @Html.ValidationMessageFor(model => model.ReliabilityGrade)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DocumentationGrade)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.DocumentationGrade)
            @Html.ValidationMessageFor(model => model.DocumentationGrade)
        </div>
    </fieldset>
    <fieldset class="withBorder">
        <legend> Експериментална част </legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.ExperimentDescriptionGrade)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.ExperimentDescriptionGrade)
            @Html.ValidationMessageFor(model => model.ExperimentDescriptionGrade)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ResultsPresentationGrade)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.ResultsPresentationGrade)
            @Html.ValidationMessageFor(model => model.ResultsPresentationGrade)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.InterpretationOfResultsGrade)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.InterpretationOfResultsGrade)
            @Html.ValidationMessageFor(model => model.InterpretationOfResultsGrade)
        </div>
    </fieldset>
    <fieldset class="withBorder">
        <legend> Обобщение </legend>
        <div class="editor-label">
            @Html.LabelFor( model => model.OverallGrade )
        </div>
        <div class="editor-field">
            @Html.DisplayFor( model => model.OverallGrade )
            @Html.ValidationMessageFor(model => model.OverallGrade)
        </div>

        <div class="editor-label">
            @Html.LabelFor( model => model.OverallOpinion )
        </div>
        <div class="editor-field">
            @Html.DisplayFor( model => model.OverallOpinion )
            @Html.ValidationMessageFor(model => model.OverallOpinion)
        </div>

        <div class="editor-label">
            @Html.LabelFor( model => model.Questions )
        </div>
        <div class="editor-field">
            @Html.DisplayFor( model => model.Questions )
            @Html.ValidationMessageFor(model => model.Questions )
        </div>

        @Html.Hidden("studentId", new { studentId = Model.Thesis.Student.PersonId })
    </fieldset>


@if (Model != null)
{
    using( Html.BeginForm( "getThesisEvaluationDocument", "ThesisisInfo", FormMethod.Post ) )  
    {
        <input type="hidden" name="studentId" value="@Model.Thesis.Student.PersonId" />
        <button> Eкспортирай </button>
    }
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}